import { Toast } from 'vant'
export { Toast } from 'vant'
export const loading = (flag) => {
  if (flag) {
    Toast.loading({
      message: '加载中',
      forbidClick: true,
      loadingType: 'spinner',
      duration: 0
    })
  } else {
    Toast.clear()
  }
}
